using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartLink.DTOS.SysBasic
{
    /// <summary>
    /// 系统模块功能授权树节点
    /// </summary>
    public class SysModuleFunctionTreeNodeDTO
    {
        /// <summary>
        /// 模块ID
        /// </summary>
        public int ModuleID { get; set; }

        public int? ParentID { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 节点名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// Url地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 对应图标样式名称
        /// </summary>
        public string IconName { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        public int? Sort { get; set; }
        /// <summary>
        /// 深度（无父级则为零）
        /// </summary>
        public int Depth { get; set; }
        /// <summary>
        /// 拥有标志
        /// </summary>
        public bool Flag { get; set; }
        /// <summary>
        /// 子节点
        /// </summary>
        public IList<SysModuleFunctionTreeNodeDTO> Children { get; set; }
        /// <summary>
        /// 模块功能
        /// </summary>
        public IList<SysModuleFunctionNodeDTO> Functions { get; set; }
    }
}
